﻿#region Header
// ------------------------ Licence / Copyright ------------------------
// 
// ScrumTable for Scrum Meeting Support
// Copyright © HSR - Hochschule für Technik Rapperswil
// All Rights Reserved
// 
// Author:
//  Michael Gfeller Silvan Gehrig Patrick Boos
// 
// ---------------------------------------------------------------------
#endregion

#region Usings

using System;
using ScrumTable.Common;
using ScrumTable.DL.Data.Common;

#endregion

namespace ScrumTable.DL.Data.Generic.Services
{
    /// <summary>
    /// This class is used to load the settings of a work item.
    /// </summary>
    internal class NullDataSaveManager : DisposeBase, IDataSaveManager
    {
        #region Declarations
        //--------------------------------------------------------------------
        // Declarations
        //--------------------------------------------------------------------

        #endregion

        #region Properties
        //--------------------------------------------------------------------
        // Properties
        //--------------------------------------------------------------------

        #endregion

        #region Constructors / Destructor
        //--------------------------------------------------------------------
        // Constructors / Destructor
        //--------------------------------------------------------------------

        /// <summary>
        /// Creates a new DataSaveProcess instance, no public constructor
        /// needed.
        /// </summary>
        internal NullDataSaveManager()
        {
        }

        #endregion

        #region Methods
        //--------------------------------------------------------------------
        // Methods
        //--------------------------------------------------------------------

        /// <summary>
        /// Starts the asynchronous data save/sync process.
        /// </summary>
        /// <remarks>This procedure must be called from UI thread.</remarks>
        public void Start()
        {
        }

        /// <summary>
        /// Stops the asynchronous data save/sync process.
        /// </summary>
        /// <param name="callbackEvent">Specifies the callback which is fired after the process has been completed.</param>
        /// <remarks>This procedure must be called from main UI thread.</remarks>
        public void Stop(AsyncCallback callbackEvent)
        {
            callbackEvent(new EmptyCancellableDataResult());
        }

        #endregion

        #region Events
        //--------------------------------------------------------------------
        // Events
        //--------------------------------------------------------------------

        #endregion
    }
}